import request from '@/utils/request'
//添加项目
export function newProject(data) {
    return request({
        url: '/project/save',
        method: 'post',
        data
    })
}
//项目列表
export function projectList(data) {
    return request({
        url: '/project/list',
        method: 'post',
        data
    })
}
//跳转基础配置
export function gconfigBasic(data) {
    return request({
        url: '/gconfig/basic',
        method: 'post',
        data
    })
}
//项目详情
export function projectDesc(data) {
    return request({
        url: '/project/desc',
        method: 'post',
        data
    })
}
//基础配置保存
export function basicSave(data) {
    return request({
        url: '/gconfig/basic/save',
        method: 'post',
        data
    })
}
//跳转model配置
export function gconfigModel(data) {
    return request({
        url: '/gconfig/model',
        method: 'post',
        data
    })
}
//保存model配置
export function modelSave(data) {
    return request({
        url: '/gconfig/model/save',
        method: 'post',
        data
    })
}
//跳转dao配置
export function gconfigDao(data) {
    return request({
        url: '/gconfig/dao',
        method: 'post',
        data
    })
}
//保存dao配置
export function gconfigDaoSave(data) {
    return request({
        url: '/gconfig/dao/save',
        method: 'post',
        data
    })
}
//跳转service配置
export function gconfigService(data) {
    return request({
        url: '/gconfig/service',
        method: 'post',
        data
    })
}
//保存service配置
export function gconfigServiceSave(data) {
    return request({
        url: '/gconfig/service/save',
        method: 'post',
        data
    })
}
//跳转controller配置
export function gconfigController(data) {
    return request({
        url: '/gconfig/controller',
        method: 'post',
        data
    })
}
//保存controller配置
export function gconfigControllerSave(data) {
    return request({
        url: '/gconfig/controller/save',
        method: 'post',
        data
    })
}
//跳转view配置
export function gconfigView(data) {
    return request({
        url: '/gconfig/view',
        method: 'post',
        data
    })
}
//保存view配置
export function gconfigViewSave(data) {
    return request({
        url: '/gconfig/view/save',
        method: 'post',
        data
    })
}
//获取映射关系
export function relationData(data) {
    return request({
        url: '/project/db/relation/data',
        method: 'post',
        data
    })
}
//保存映射关系
export function relationDataSave(data) {
    return request({
        url: '/project/db/relation/data/save',
        method: 'post',
        data
    })
}
//业务配置-表菜单
export function fsMenu(data) {
    return request({
        url: '/fs/menu',
        method: 'post',
        data
    })
}
//业务配置-获取单一表的列信息
export function fsColsFields(data) {
    return request({
        url: '/fs/cols/to/fields',
        method: 'post',
        data
    })
}
//业务配置-保存单一表的fields
export function fsColsFieldsSave(data) {
    return request({
        url: '/fs/cols/to/fields/save',
        method: 'post',
        data
    })
}
//保存生成模板
export function gtmSave(data) {
    return request({
        url: '/gtm/save',
        method: 'post',
        data
    })
}
//生成模板列表
export function gtmList(data) {
    return request({
        url: '/gtm/list',
        method: 'post',
        data
    })
}
//生成模板详情
export function gtmDesc(data) {
    return request({
        url: '/gtm/desc',
        method: 'post',
        data
    })
}
//模板集管理菜单
export function tedescMain(data) {
    return request({
        url: '/tdesc/main',
        method: 'post',
        data
    })
}
//模板集删除
export function tdescDelete(data) {
    return request({
        url: '/tdesc/delete/desc',
        method: 'post',
        data
    })
}
//模板集管理详情
export function tedescItem(data) {
    return request({
        url: '/tdesc/item',
        method: 'post',
        data
    })
}
//模板集单一模板保存
export function tedescItemSave(data) {
    return request({
        url: '/tdesc/item/save',
        method: 'post',
        data
    })
}
//获取表下的属性
export function eleInfo(data) {
    return request({
        url: '/project/db/relation/data/eleinfo',
        method: 'post',
        data
    })
}
//属性映射-获取控件关系类型
export function relationVals(data) {
    return request({
        url: '/fs/control/relation/vals',
        method: 'post',
        data
    })
}
//清空所有关系映射
export function clearAll(data) {
    return request({
        url: '/fs/cols/to/fields/clear/all',
        method: 'post',
        data
    })
}
//清空关系映射-单表
export function clear(data) {
    return request({
        url: '/fs/cols/to/fields/clear',
        method: 'post',
        data
    })
}
//选择导出模板和代码管理类型
export function generator(data) {
    return request({
        url: '/project/generator/desc',
        method: 'post',
        data
    })
}
//开始导出
export function proexport(data) {
    return request({
        url: '/project/generator/export',
        method: 'post',
        data
    })
}
//帮助文档窗口
export function docwindow(data) {
    return request({
        url: '/help/doc/window',
        method: 'post',
        data
    })
}
//帮助文档列表
export function doclist(data) {
    return request({
        url: '/help/doc/list',
        method: 'post',
        data
    })
}
//创建帮助文档
export function docadd(data) {
    return request({
        url: '/help/doc/add',
        method: 'post',
        data
    })
}
//登录
export function handlogin(data) {
    return request({
        url: '/login',
        method: 'post',
        data
    })
}

//添加（修改）项目 ---- 重制
export function projectTables(data) {
    return request({
        url: '/project/view/tables',
        method: 'post',
        data
    })
}
//变量管理-列表
export function varList(data) {
    return request({
        url: '/var/list',
        method: 'post',
        data
    })
}
//变量管理-保存
export function varSave(data) {
    return request({
        url: '/var/save',
        method: 'post',
        data
    })
}
//变量管理-删除
export function varDelete(data) {
    return request({
        url: '/var/delete',
        method: 'post',
        data
    })
}
//自定义数据-列表
export function cdsList(data) {
    return request({
        url: '/project/cds/list',
        method: 'post',
        data
    })
}
//自定义数据-详情
export function cdsDesc(data) {
    return request({
        url: '/project/cds/desc',
        method: 'post',
        data
    })
}
//自定义数据-保存
export function cdsSave(data) {
    return request({
        url: '/project/cds/save',
        method: 'post',
        data
    })
}
//自定义数据-删除
export function cdsDel(data) {
    return request({
        url: '/project/cds/delete',
        method: 'post',
        data
    })
}
//2.0 模板附加值列表
export function tsdList(data) {
    return request({
        url: '/tsd/list',
        method: 'post',
        data
    })
}
//2.0 模板附加值详情
export function tsdDesc(data) {
    return request({
        url: '/tsd/desc',
        method: 'post',
        data
    })
}
//2.0 模板附加值删除
export function tsdDelete(data) {
    return request({
        url: '/tsd/delete',
        method: 'post',
        data
    })
}
//2.0 保存/修改模板附加值
export function tsdSave(data) {
    return request({
        url: '/tsd/save',
        method: 'post',
        data
    })
}
//2.0 枚举列表
export function enumList(data) {
    return request({
        url: '/enum/list',
        method: 'post',
        data
    })
}
//2.0 添加枚举
export function enumSave(data) {
    return request({
        url: '/enum/save',
        method: 'post',
        data
    })
}
//2.0 枚举详情
export function enumDesc(data) {
    return request({
        url: '/enum/desc',
        method: 'post',
        data
    })
}
//2.0 枚举删除
export function enumDel(data) {
    return request({
        url: '/enum/delete',
        method: 'post',
        data
    })
}
//修改项目-文件模板详情
export function descTcs(data) {
    return request({
        url: '/project/generator/desc/tcs',
        method: 'post',
        data
    })
}
//选择控件数据类型级联数据
export function dataSelected(data) {
    return request({
        url: '/fs/fc/data/selected',
        method: 'post',
        data
    })
}
//查看生成模板的全局模板
export function dataConsole(data) {
  return request({
    url: '/gtm/console',
    method: 'post',
    data
  })
}
//修改生成模板的全局模板
export function upConsole(data) {
  return request({
    url: '/gtm/update/console',
    method: 'post',
    data
  })
}
//克隆模版
export function Clone(data) {
  return request({
    url: '/gtm/copy',
    method: 'post',
    data
  })
}
//克隆删除
export function DelAll(data) {
  return request({
    url: '/gtm/delete/all',
    method: 'post',
    data
  })
}
